#include <iostream>
#include <assert.h>

using namespace std;

int find(int array[], int length, int value)
{
	if(NULL == array || 0 == length)
		return false;

	int index = 0;
	for(; index < length; index++){
		if(value == array[index])
			return index;
	}

	return false;
}


static void test1()
{
	int array[10] = {0};
	assert(false == find(NULL, 10, 10));
	assert(false == find(array, 0, 10));
}

int main()
{

	system("pause");
	return 0;
}